//tag::include[]
package com.lianyou.chapter02.containerelement.typeCascaded;

//end::include[]

import jakarta.validation.valueextraction.ExtractedValue;
import jakarta.validation.valueextraction.ValueExtractor;

//tag::include[]
public class ResultValueExtractor implements ValueExtractor<Result<@ExtractedValue ?>> {

	@Override
	public void extractValues(Result<@ExtractedValue ?> originalValue, ValueReceiver receiver) {
		receiver.value( null, originalValue.getData() );
	}
}
//end::include[]
